package com.dgut.doctorservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author dgut
 * @since 2021-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Doctor对象", description="")
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医生ID")
      @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "医生姓名")
    private String name;

    @ApiModelProperty(value = "医生简介")
    private String info;

    @ApiModelProperty(value = "医生资历")
    private String career;

    @ApiModelProperty(value = "医生类型：1、专家；2、普通医生")
    private Integer level;

    @ApiModelProperty(value = "逻辑删除：1、已删除；2、未删除")

    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "医生账号密码")
    private String password;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;

    @ApiModelProperty(value = "医生性别")
    private Integer sex;

    @ApiModelProperty(value = "医生身份证")
    private String idCard;

    @ApiModelProperty(value = "医生电话")
    private String phone;


}
